package top.mccat.shirospringboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Raven
 * @version 1.0
 * @date 2022/3/7
 */
@Controller
public class ShiroController {
    @RequestMapping({"/","/index"})
    public String toIndex(Model model){
        model.addAttribute("msg","shiro demo");
        return "index";
    }

    @RequestMapping("/user/add")
    public String toAddUser(){
        return "user/add";
    }

    @RequestMapping("/user/update")
    public String toUpdateUser(){
        return "user/update";
    }
}
